<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //属性值都为基本类型数值:深拷贝
    // let obj  = {a:1,b:2,c:3};
    // let obj1 = {...obj};
    // obj1.a = 99;
    // console.log(obj1);
    // console.log(obj);
</script>
<script>
   let obj ={a:1,b:2,c:[{name:'习大大'}]};
   let obj1 = {...obj};
   obj1.c[0].name = '豪哥';
   console.log(obj);

   //豪哥:基础深拷贝JSON.stringify | 递归   ....
</script>